package com.gopay.common.domain.bank.route.po;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

import com.gopay.common.domain.BaseEntity;

/**
 * 
 * ZhangZG
 * 2016年9月30日 
 * www.gopay.com.cn Inc.All rights reserved.
 */


@Entity
@Table(name = "BIS_SPECIAL_ROUTE_SOLU_CUST")
public class BankSpecialRouteSoultionCust extends BaseEntity{

	private static final long serialVersionUID = -2726154022063742058L;
	
	private Integer id;
	
	private Integer solutionId;
	
	private String custId;
	/**方案是否删除 0删除，1未删除**/
	private Integer isDelete;
	
	private Integer version;
	/**创建时间**/
	private Date createdTs;
	/**最近修改时间**/
	private Date lastUpdTs;
	
	@Id
	@SequenceGenerator(name = "bisRouteSolutionCustSeq", sequenceName = "bis_route_solu_cust_seq" ,allocationSize=1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "bisRouteSolutionCustSeq")
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "SOLUTION_ID")
	public Integer getSolutionId() {
		return solutionId;
	}
	public void setSolutionId(Integer solutionId) {
		this.solutionId = solutionId;
	}
	@Column(name = "CUST_ID")
	public String getCustId() {
		return custId;
	}
	public void setCustId(String custId) {
		this.custId = custId;
	}
	@Column(name = "IS_DELETE")
	public Integer getIsDelete() {
		return isDelete;
	}
	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}
	@Version
	@Column(name = "VERSION")
	public Integer getVersion() {
		return version;
	}
	public void setVersion(Integer version) {
		this.version = version;
	}
	@Column(name = "CREATE_TS", nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	public Date getCreatedTs() {
		return createdTs;
	}
	public void setCreatedTs(Date createdTs) {
		this.createdTs = createdTs;
	}
	@Column(name = "LAST_UPD_TS", nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	public Date getLastUpdTs() {
		return lastUpdTs;
	}
	public void setLastUpdTs(Date lastUpdTs) {
		this.lastUpdTs = lastUpdTs;
	}
	
	
}
